package org.itboys.result;

import java.io.Serializable;

public class Result<T> implements Serializable{

	private static final long serialVersionUID = -3279445414291495223L;
	
	private boolean ok; //成功或失败
	private int code; //失败的编码
	private String message; //失败编码翻译
	private T result; //返回的对象
	
	
	public boolean isOk() {
		return ok;
	}
	public void setOk(boolean ok) {
		this.ok = ok;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getResult() {
		return result;
	}
	public void setResult(T result) {
		this.result = result;
	}
	
}
